<template>
  <div class="401">
    <img :src="imgSrc" class="error_img" alt="" />
      <div class="error-desc">亲~没授权哦</div>
      <div class="error-handle">
        <router-link to="/">
          <el-button type="primary" size="large">返回首页</el-button>
        </router-link>
        <el-button class="error-btn"
                   type="primary"
                   size="large"
                   @click="goBack">
          返回上一页
        </el-button>
      </div>
    </div>
</template>

<script>
export default {
  name: "401",
  data() {
    return {
      imgSrc: require('../../assets/photos/401.webp'),
    }
  },
  methods: {
    goBack() {
      this.$router.go(-1)
    },
  }
}
</script>

<style scoped>
.error_img {
  position: absolute;
  left: 5%;
  top: 20%;
  width: 50%;
  height: 50%;
}
.error-code span{
  color: #00a854;
}
.error-desc{
  position: absolute;
  left: 70%;
  top: 30%;
  font-size: 50px;
  color: #777;
}
.error-handle{
  position: absolute;
  left: 70%;
  top: 50%;
  margin-top: 30px;
  padding-bottom: 200px;
}
.error-btn{
  margin-left: 100px;
}
</style>
